import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/Login.vue'
import Login2 from '../views/Login2.vue'
import Home from '../views/Home.vue'
import Test1 from '../views/Test1.vue'
import Test2 from '../views/Test2.vue'
import Welcome from "../views/Welcome";
import el from "element-ui/src/locale/lang/el";
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Welcome',
    component: Welcome,
    hidden:true,
  },
  {
    path: '/roleLogin',
    name: 'Login',
    component: Login,
    hidden:true,
  },
  {
    path: '/userLogin',
    name: 'Login2',
    component: Login2,
    hidden:true,
  },

  {
    path: '/Home',
    name: '导航一',
    component: Home,
    children:[
      {
        path: '/test1',
        name: '选项1',
        component: Test1
      },
      {
        path: '/test2',
        name: '选项2',
        component: Test2
      },
    ]
  },

]

const router = new VueRouter({
  routes
})



export default router
